package net
{
	import flash.utils.ByteArray;
	import flash.utils.Endian;
	
	public class Stream extends ByteArray
	{
		public function Stream()
		{
			super();
			endian = Endian.LITTLE_ENDIAN;
		}
		
		public function writeStringX(value:String):void
		{
			super.writeUTF(value);
			this.writeByte(0);
		}
		
		public function readStringX():String {
			var result:String = super.readUTF();
			super.position++;
			return result;
		}
	}
}